<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<%@ include file="/common/CimsCommon.jsp" %>
   <title>新增模板</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link rel="stylesheet" href="<%=basePath%>/css/cims/cmmBase.css">
   <script type="text/javascript" src="${basePath}/js/cims/publicJs/modelManage.js"></script>
   <script type="text/javascript" src="${basePath}/js/cims/publicJs/cascadeSelect.js"></script>
   

   
</head>
  
<body style="background-color:#FFFFFF">
<div id="formPageSwap">
  <br/>
<form id="addNewsFormData" name="addNewsFormData" isCheck="true" action="">
 <table id="addNewsTableId" class="formTableSwap" border="0" align="center" cellpadding="0" cellspacing="1" >

<tr>
	<td colspan="6" align="center" class="thTop">模板信息</td>
</tr>

<tr>
  <th> 合作机构 ：</th>
  <td >
 	<input id="cooperorg" name="cooperorgCode"> 
  </td>
  <th> 合约名称：</th>
  <td colspan="4" id="contractName"> 
  <input id="contract" name="contractCode"> 
  </td>
</tr>
<tr>
  <th> 模板编码：</th>
  <td > 
  <input type="text"  id="templateCode" name="templateCode" notNull="false"  value="" />
  </td>
  <th> 模板名称：</th>
  <td > 
  <input type="text"  id="fileName" name="fileName" notNull="false"  value="" />
  </td>
  
  <th> 应用场景 ：</th>
  <td> 
  <syscode:dictionary name="templateType" extendProperty="notNull=false" onchange="addFields(this)" codeType="TEMPLATE_TYPE" id="templateType"	className="text" type="select"/>
  </td>
</tr>

<tr>
	<td colspan="6" align="center" class="thTop">字段操作</td>
</tr>

<tr>
  <td style="text-align: right;" colspan="2">
  <p id="exportName">选择导出字段：</p> 
<select  multiple id="ecportFields" >
</select>
<select id="isImportFields" style="display:none;"></select>
</td>

<td style="text-align: center;">
  <p><input type="button" class="text" onclick="addExportField('ecportFields','ecportSelectedFields','isImportFields','isImportSelectedFields')" value="添加" /></p>
  <p><input type="button" class="text inputTop" onclick="delExportField('ecportFields','ecportSelectedFields','isImportFields','isImportSelectedFields')" value="移除" /></p>
</td>
  
  
  <td> 
  <p> 已选导出字段 ：</p>
	<select multiple id="ecportSelectedFields" ></select>
	<select id="isImportSelectedFields" style="display:none;"></select>
  </td>
  
  <td colspan="2">
  	<p><input type="button" class="text" onclick="upMove('ecportSelectedFields','isImportSelectedFields')" value="上移" /></p>
  	<p><input type="button" class="text" onclick="downMove('ecportSelectedFields','isImportSelectedFields')" value="下移" /></p>
  
  </td>
</tr>

<tr>
  <td style="text-align: right;" colspan="2">
  <p>客户信息：</p> 
<select  multiple id="ecportCostomFields" >
</select>
<select id="isImportCostomFields" style="display:none;"></select>
</td>

<td style="text-align: center;">
  <p><input type="button" class="text" onclick="addExportField('ecportCostomFields','ecportSelectedCostomFields','isImportCostomFields','isImportSelectedCostomFields')" value="添加" /></p>
  <p><input type="button" class="text inputTop" onclick="delExportField('ecportCostomFields','ecportSelectedCostomFields','isImportCostomFields','isImportSelectedCostomFields')" value="移除" /></p>
</td>
  
  
  <td> 
  <p> 已选导出字段 ：</p>
	<select multiple id="ecportSelectedCostomFields" ></select>
	<select id="isImportSelectedCostomFields" style="display:none;"></select>
  </td>
  
  <td colspan="2">
  	<p><input type="button" class="text" onclick="upMove('ecportSelectedCostomFields','isImportSelectedCostomFields')" value="上移" /></p>
  	<p><input type="button" class="text" onclick="downMove('ecportSelectedCostomFields','isImportSelectedCostomFields')" value="下移" /></p>
  
  </td>
</tr>
  </table>

<!-- 保存 关闭 按钮 在 查询页面进行控制 -->  
</form>
<div class="expandToolbar">
		<span class="submitBtn mouseName" onclick="saveTest('')">保存</span>
		<span class="submitBtn mouseName" onclick="parent.tabs.close()">关闭</span>
</div>
</div>

</body>

<script type="text/javascript">
   $(document).ready(function(){
   	checkedInit();
	});
</script>
  
</html>
